Class StaticMacImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.impl.StaticMacImpl
All Implemented Interfaces:
IPCData, StaticMac

public class StaticMacImpl extends IPCDataImpl implements StaticMac
  • Field Details

    • macAddress

      protected MACAddress macAddress
    • vlanId

      protected int vlanId
    • port

      protected String port
  • Constructor Details

    • StaticMacImpl

      public StaticMacImpl()
  • Method Details

    • getMacAddress

      public MACAddress getMacAddress()
      Specified by:
      getMacAddress in interface StaticMac
      Returns:
      MACAddress Returns a MACAddress
    • setMacAddress

      public void setMacAddress(MACAddress macAddress)
      Specified by:
      setMacAddress in interface StaticMac
      Parameters:
      macAddress - Takes in a parameter of macAddress
    • getVlanId

      public int getVlanId()
      Specified by:
      getVlanId in interface StaticMac
      Returns:
      int Returns a int
    • setVlanId

      public void setVlanId(int vlanId)
      Specified by:
      setVlanId in interface StaticMac
      Parameters:
      vlanId - Takes in a parameter of vlanId
    • getPort

      public String getPort()
      Specified by:
      getPort in interface StaticMac
      Returns:
      String Returns a String
    • setPort

      public void setPort(String port)
      Specified by:
      setPort in interface StaticMac
      Parameters:
      port - Takes in a parameter of port
    • read

      public void read(EncodedBuffer buffer)
      Reads this object from an EncodedBuffer of raw data
      Specified by:
      read in interface IPCData
      Specified by:
      read in class IPCDataImpl
      Parameters:
      buffer - The EncodedBuffer that contains the raw data from which to construct this object